<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="language" value="${not empty param.language ? param.language : not empty language ? language : pageContext.request.locale}" scope="session" />
<fmt:setLocale value="${language}" />
<fmt:setBundle basename="properties.text" />
<title><fmt:message key="users" /></title>
<script type="text/javascript" src="validateEdit.js"> </script>
</head>
<body>
	<form action="userServlet" method="POST">
	<table style="margin-left:5%;margin-bottom:2%;margin-top:2%">
			<input type="password" style="display:none;" name="id" id="id" value="" size="20" />
           <tr><td>
           	<fmt:message key="firstname" />:</td>
           	<td><input type="text" name="firstName" id="firstName" value="" size="20" />
           </td> </tr>
            <tr><td>
            <fmt:message key="lastname" />:</td>
            <td><input type="text" name="lastName" id="lastName" value="" size="20" />
            </td>
            </tr>
            <tr><td>
            <fmt:message key="homenumber" />:</td><td><input type="text" name="homeNumber" id="homeNumber" value="" size="20" />
            </td>
            </tr><tr><td>
            <fmt:message key="cellnumber" />:</td>
            <td><input type="text" name="cellNumber" id="cellNumber" value="" size="20" />
           </td>
            </tr>
            <tr><td>
            <fmt:message key="email" />:</td><td><input type="text" name="email" id="email" value="" size="20" />
          </td>
           </tr> <tr><td>
            <fmt:message key="rank" />:</td><td><input type="text" id="rank" name="rank" value="" size="20" />
           </td>
            </tr>
            <tr><td>
            <fmt:message key="description" />:</td>
            <td><textarea id="description" name="description" style="width: 207px; height: 117px;"></textarea>
        </td>
        </tr>
         <tr><td>
            <fmt:message key="type" />:</td>
            <td>
            <select name="userType" id="userType">
 				 		<option value="Administrator"><fmt:message key="admin" /></option>
  						<option value="Director General"><fmt:message key="gendir" /></option>
 						<option value="Director HR"><fmt:message key="hrdir" /></option>
 						<option value="Director Departament"><fmt:message key="depdir" /></option>
 						<option value="Recruiter"><fmt:message key="recruiter" /></option>
					  </select>
			   </td>
			</tr>
			<tr><td colspan="2">
			<input type="text" value=<fmt:message key="alertPositionName"/> id="alertPositionName" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertNrPersons"/> id="alertNrPersons" style="display: none;"/>
   			<input type="text" value=<fmt:message key="alertFirstName"/> id="alertFirstName" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertLastName"/> id="alertLastName" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertHomeNr"/> id="alertHomeNr" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertEnterCellNr"/> id="alertEnterCellNr" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertCheckCellNr"/> id="alertCheckCellNr" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertCheckEmail"/> id="alertCheckEmail" style="display: none;"/>
            <input type="text" value=<fmt:message key="alertInsertEmail"/> id="alertInsertEmail" style="display: none;"/>
        
			<input type="submit" value=<fmt:message key="insert"/> name="addUser"  onclick="return validateFields();"/>
            <input type="submit" value=<fmt:message key="edit"/> name="updateUser" onclick="return validateFields();" />
            <input type="submit" value=<fmt:message key="remove"/> name="deleteUser" onclick="return validateFields();"/>
            <input type="submit" value=<fmt:message key="clear"/> name="clear" onclick="return clearFields();"/>       
            <td></tr>
            </table>
        </form>
</body>
</html>